package com.xhwl.centiotdata.pojo.constant;

/**
 * @description:
 * @author: wuyuhao
 * @createDate: 2022/12/23 14:28
 */
public class DnakeConstant {

    //=====================狄耐克设备相关的redis key=====================//
    /**
     * redis中狄耐克设备信息key
     * dnake:{projectId}:info_{uid}
     */
    public static final String DEVICE_INFO_REDIS_KEY = "dnake:%s:info_%s";

    /**
     * redis中狄耐克设备在线key
     * dnake:{projectId}:online_{uid}
     */
    public static final String DEVICE_ONLINE_REDIS_KEY = "dnake:%s:online_%s";

    //=====================狄耐克设备topic=====================//

    /**
     * 设备端，主动发送的topic
     */
    public static String DEVICE_TOPICS = "dnake/cms/deviceTopics";

    /**
     * 平台端，远程开门
     */
    public static String FROM = "xhwl";
    public static String REMOTE_OPEN = "dnake/cms/%s/remoteOpen";

    /**
     * 平台端，Sip账号注册
     */
    public static String VOIP_WRITE = "dnake/cms/%s/voipWrite";

    /**
     * 平台端，平台下发后，设备的响应
     * dnake/cms/{projectId}/respond
     */
    public static String RESPOND = "dnake/cms/%s/respond";

}
